<?php 
if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class sysconf_model extends MY_Model
{
	public $soft_delete = FALSE;

	public $_table = TABLE_CONFIG;

	public $primary_key = 'coId';

	public $return_type = 'array';

	public $select_field = 'coId,coTitle,coKey,coValue,coDesc,cgId';
	
	function sysvalueweb()
    {
      $sql="SELECT * FROM qp_config where cgid = 1";
      $res=$this->db->query($sql)->result_array();
      return $res;
    }
    function sysvaluemail()
    {
      $sql="SELECT * FROM qp_config where cgid = 2";
      $res=$this->db->query($sql)->result_array();
      return $res;
    }
}